package com.night.administration.mapper;

import com.night.common.entity.administration.Test;
import com.night.common.entity.logistical.Area;

import java.util.Date;
import java.util.List;

/**
 * @ClassName: TestMapper
 * @Description: //TODO
 * @author: LZJ
 * @date: 2022/10/19-16:13
 * @version: v1.0
 */
public interface TestMapper {
    //考场安排
    void insert(Test test);

    //考场更改
    void update(Test test);

    //删除考场
    void deleted(int id);

    //多条件查询所有考场
    List<Test> getByCondition(Test test);

    //通过id查询考试地点
    Area getDress(int dressId);

    //通过教师id查询考试安排
    List<Test> getTestByTeacherId(int teacherId);

    //通过考试时间查询教室
    List<Test> getArea(Date test_start_time);
}
